package charstream;

import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;

public class CharStreamDemo9 {
    public static void main(String[] args) throws IOException {
        // 字符缓冲流的特有功能
        // 符缓冲输出流BufferedWrite:跨平台的换行符newLine
        BufferedWriter bw = new BufferedWriter(new FileWriter("F:\\111\\a.txt"));

        // 写出数据
        bw.write("黑马程序员666");
        bw.newLine();
        bw.write("abcdef");
        bw.newLine();
        bw.write("-----------------");
        bw.flush();
        bw.close();

    }
}
